package com.harmony.suppertiger.item;

import ohos.agp.render.PixelMapHolder;

import java.util.List;

/**
 * Created by Miaolonglong on 2021/12/24.
 */

public class Coin extends ItemSprite {
    private int delay;
    public Coin(int width, int height, List<PixelMapHolder> bitmaps) {
        super(width, height, bitmaps);
    }

    @Override
    public void logic() {
        if(isVisiable()){
            if(delay++>5){
                nextFrame();
                delay=0;
            }

        }
    }
}
